<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Creates a new value of some type</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.spltype.html">SplType</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.splint.html">SplInt</a></div>
 <div class="up"><a href="class.spltype.html">SplType</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="spltype.construct" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SplType::__construct</h1>
  <p class="verinfo">(PECL spl_types &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">SplType::__construct</span> &mdash; <span class="dc-title">Creates a new value of some type</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-spltype.construct-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>SplType::__construct</strong></span>
    ([ <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$initial_value</code></span>
   [, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$strict</code></span>
  ]] )</div>

  <p class="para rdfs-comment">

  </p>

  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">本函数还未编写文档，仅有参数列表。</p></div>

 </div>


 <div class="refsect1 parameters" id="refsect1-spltype.construct-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>
<em><code class="parameter">initial_value</code></em></dt>

    <dd>

     <p class="para">
      Type and default value depends on the extension class.
     </p>
    </dd>

   
   
    <dt>
<em><code class="parameter">strict</code></em></dt>

    <dd>

     <p class="para">
      Whether to set the object&#039;s sctrictness.
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 errors" id="refsect1-spltype.construct-errors">
  <h3 class="title">错误／异常</h3>
  <p class="para">
   Throws an <a href="class.unexpectedvalueexception.html" class="classname">UnexpectedValueException</a> if incompatible
   type is given.
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.spltype.html">SplType</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.splint.html">SplInt</a></div>
 <div class="up"><a href="class.spltype.html">SplType</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
